package model

import "gorm.io/gorm"

type Favorite struct {
	gorm.Model
	UserId  int `gorm:"type:int" json:"userId"`
	VideoId int `gorm:"type:int" json:"videoId"`
}

func (f *Favorite) AddFavorite(db *gorm.DB) error {
	return db.Create(&f).Error
}
